<template>
  <div class="textInfoBox">
    <div class="textInfoBox-title">
      <slot></slot>
    </div>
    <div class="textInfoBox-index">
      {{title}}
    </div>
  </div>
</template>

<script>
  export default {
    name: 'textInfoBox',
    props: ['title'],
    data () {
      return {}
    }
  }
</script>

<style scoped>
  .textInfoBox {
    width: 100%;
  }

  .textInfoBox-title {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .textInfoBox-index {
    margin-top: 14rpx;
    text-align: center;
    width: 100%;
    font-size: 24rpx;
    color: rgba(145, 150, 153, 1);
  }
</style>
